const { Buffer } = require('buffer')

const buffer = Buffer.alloc(10000)

console.log(Buffer.poolSize >>> 1)

// Buffer.from
// Buffer.concat
const unsafeBuff = Buffer.allocUnsafe(10000)

// Buffer.allocUnsafeSlow will not use the pool and will allocate a new buffer
const unsafeBuffSlow = Buffer.allocUnsafeSlow(2)